package com.huge.simple.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import springfox.documentation.builders.ApiInfoBuilder;
import springfox.documentation.service.Contact;
import springfox.documentation.spi.DocumentationType;
import springfox.documentation.spring.web.plugins.Docket;

/**
 * @author jihu
 * date 2022-03-28
 */
@Configuration
public class Swagger3Config {

    @Bean
    public Docket docket(){
        return new Docket(DocumentationType.OAS_30).apiInfo(
                new ApiInfoBuilder()
                        .contact(new Contact("jihu",null,"springhuge@foxmail.com"))
                        .title("simple-boot低代码平台")
                        .description("simple-boot低代码平台api接口")
                        .version("1.0.0")
                        .build());
    }
}
